﻿using System.Collections;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using MyAnimelistRecommender.DataObject;

namespace MyAnimelistRecommender.Controls.TabControls
{
    /// <summary>
    /// Interaction logic for Recommendations.xaml
    /// </summary>
    public partial class Recommendations : UserControl
    {
        public Recommendations()
        {
            InitializeComponent();
        }

        private void TextBlock_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            if (App.Model.SelectedRecommendation != null)
            {
                Process.Start(App.Model.SelectedRecommendation.Uri);
            }
        }

        private void Listbox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            DataHelper.RecommendationDataHelper.AddRecToBlacklist();
        }
    }
}